import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import '../MyConfig.dart';

// 游戏显示主界面
class GameShowView extends StatelessWidget {
  final Widget child;

  const GameShowView({Key key, @required this.child}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      // color: Color(0xFFfae36c)
      decoration: BoxDecoration(
        // todo width 外边框 线条宽度
        border: Border.all(color: Color(0xFFfae36c) ,width: 3),
      ),
      child: Container(
        decoration: BoxDecoration(border: Border.all(color: Colors.black54 ,width: 1)),
        child: Container(
          padding: const EdgeInsets.all(3), // 3
          color: Colors.white,
          child: child,
        ),
      ),
    );
  }
}
